package com.example.demo.utils;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import com.example.demo.vo.userVo;

public class tokenUtil {
    public static String getToken(userVo info){
        String token="";
        token= JWT.create().withAudience(info.getId()+"")
                .sign(Algorithm.HMAC256(info.getUsername()));
        return token;
    }
}
